package com.rmb.controller;

import com.rmb.service.LogRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * @ClassName LogRegisterController
 * @Description 操作日志
 * @Author lvshook
 * @Date 2021/1/20 19:35
 * @Version 1.0
 **/
@RestController
@RequestMapping("/rmb/register")
public class LogRegisterController {

    @Autowired
    private LogRegisterService logRegisterService;

    /**
     * 根据用户id查询所有数据
     * @param uid
     * @return
     */
    @GetMapping("/findAll")
    public List finAll(@RequestParam("uid") Long uid){
        List all = logRegisterService.findAll(uid);
        return all;
    }

}
